package jiachunlei.template;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/5 18:59
 */
public abstract class Game
{
    abstract void initialize();

    abstract void startPlay();

    abstract void endPlay();

    //模板
    public final void play()
    {
        //初始化游戏
        initialize();
        //开始游戏
        startPlay();
        //结束游戏
        endPlay();
    }
}
